home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Help / locale / help / english / sys / run.doc < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.4 KB  |  52 lines

  1. RUN
  2.  
  3. Executes commands as background processes.
  4.  
  5. Format
  6.  
  7. RUN <command...> [{+ <command>}]
  8.  
  9. Template
  10.  
  11. COMMAND/F
  12.  
  13. Location
  14.  
  15. Internal
  16.  
  17. RUN is used to start background processes. A background process does not open
  18. its own window for input or output and does not take over the parent Shell.
  19.  
  20. RUN attempts to execute the <command> and any arguments entered on the
  21. command line. You can RUN multiple command lines by separating them with plus
  22. signs (+). If you press Return after a plus sign, RUN interprets the next
  23. line as a continuation of the same command line.
  24.  
  25. To make it possible to close the Shell window in which the process was
  26. started, redirect the output of RUN with RUN >NIL: <command>.
  27.  
  28. A new background Shell has the same search path and command stack size as the
  29. Shell from which RUN is given.
  30.  
  31. You can RUN commands stored to the resident list. Resident commands are
  32. checked before commands in the command path. A Shell started with RUN
  33. NEWSHELL uses the default startup file, S:Shell-startup.
  34.  
  35. Example 1:
  36.  
  37. 1> RUN COPY Text TO PRT:+
  38. DELETE Text +
  39. ECHO "Printing finished"
  40.  
  41. prints the Text file by copying it to the printer device, deletes it, then
  42. displays the given message. Plus signs string together the command lines,
  43. causing each command to be run after the previous command finishes.
  44.  
  45. Example 2:
  46.  
  47. 1> RUN EXECUTE Comseq
  48.  
  49. executes, in the background, all the commands in the script file Comseq.
  50.  
  51. For more examples using the RUN command, see Chapter 8.
  52.